package com.itheima.IO流.day01.字节流FileInputStream;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        //demo1();
        demo2();
        return;

    }

    public static void demo2() throws IOException {
        FileOutputStream fos=new FileOutputStream("day10的IO流01\\aaa.txt",true);
        fos.write(99);
        fos.close();
    }

    public static void demo1() throws IOException {
        FileOutputStream fos=new FileOutputStream("day10的IO流01\\aaa.txt");
        fos.write('a');
        fos.close();
    }
}
